package com.xxl.job.kettle.core.service;

import com.alibaba.fastjson.JSONObject;
import com.xxl.job.kettle.core.entity.DiScript;
import com.xxl.job.kettle.core.entity.TreeDTO;
import com.xxl.job.kettle.result.Result;

import java.util.List;
import java.util.Map;

/**
 * 实现功能：
 *
 * @author 作者[zk]
 * @version 1.0.00  2022-11-29 16:01
 */
public interface DiScriptService extends BaseService<DiScript> {

    Result add(Map<String, String> param) throws Exception;

    void delete(String repId, String id, String type) throws Exception;

    void update(Map<String, String> param) throws Exception;

    List<TreeDTO<String>> findDiScriptByCatagoryId(String id, String repId, Integer pageNum, Integer pageSize);

    Result moveScript(JSONObject jsonObject) throws Exception;

    Map<String, Integer> findTransAndJobById(String id);
}
